package com.cskaoyan.bean.roleBo;

import java.util.List;

/**
 * @Author Austin Hsu
 * @Date 2022/9/9 22:36
 */
public class RoleBo2 {

    private int errno;
    private Data data;
    private String errmsg;

    public int getErrno() {
        return errno;
    }

    public void setErrno(int errno) {
        this.errno = errno;
    }

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public static class Data {
        private List<SystemPermissions> systemPermissions;
        private List<String> assignedPermissions;

        public List<SystemPermissions> getSystemPermissions() {
            return systemPermissions;
        }

        public void setSystemPermissions(List<SystemPermissions> systemPermissions) {
            this.systemPermissions = systemPermissions;
        }

        public List<String> getAssignedPermissions() {
            return assignedPermissions;
        }

        public void setAssignedPermissions(List<String> assignedPermissions) {
            this.assignedPermissions = assignedPermissions;
        }

        public static class SystemPermissions {
            private String id;
            private String label;
            private List<ChildrenX> children;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getLabel() {
                return label;
            }

            public void setLabel(String label) {
                this.label = label;
            }

            public List<ChildrenX> getChildren() {
                return children;
            }

            public void setChildren(List<ChildrenX> children) {
                this.children = children;
            }

            public static class ChildrenX {
                private String id;
                private String label;
                private List<Children> children;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getLabel() {
                    return label;
                }

                public void setLabel(String label) {
                    this.label = label;
                }

                public List<Children> getChildren() {
                    return children;
                }

                public void setChildren(List<Children> children) {
                    this.children = children;
                }

                public static class Children {
                    private String id;
                    private String label;
                    private String api;

                    public String getId() {
                        return id;
                    }

                    public void setId(String id) {
                        this.id = id;
                    }

                    public String getLabel() {
                        return label;
                    }

                    public void setLabel(String label) {
                        this.label = label;
                    }

                    public String getApi() {
                        return api;
                    }

                    public void setApi(String api) {
                        this.api = api;
                    }
                }
            }
        }
    }
}
